pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    // 定义一个Fibonacci函数
    fn calculate_fibnacci(i : u32) -> u32 {
        if i <3 {
            i -1
        } else {
            calculate_fibnacci(i-1) + calculate_fibnacci(i-2)

        }
    }

    let mut sum : u32 = 0;

    for i in 1.. {
        let tmp = calculate_fibnacci(i);
        if tmp < threshold{
            if tmp %2 !=0 {
                sum += tmp;

            }
        } else {
            break;
        }
    }

    sum


    
}
